package com.lion.ball.modules.orderfood.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.lion.common.spring.business.base.BaseCrudController;
import com.lion.ball.modules.orderfood.domain.entity.OfdDynamicGroupFoodEntity;
import com.lion.ball.modules.orderfood.web.model.params.create.OfdDynamicGroupFoodCreateParam;
import com.lion.ball.modules.orderfood.web.model.params.update.OfdDynamicGroupFoodUpdateParam;
import com.lion.ball.modules.orderfood.web.model.params.search.OfdDynamicGroupFoodSearchParam;
import com.lion.ball.modules.orderfood.web.model.params.order.OfdDynamicGroupFoodOrderParam;
import com.lion.ball.modules.orderfood.web.model.results.OfdDynamicGroupFoodResult;
import com.lion.ball.modules.orderfood.dao.repository.OfdDynamicGroupFoodRepository;
import com.lion.ball.modules.orderfood.service.assistants.converters.OfdDynamicGroupFoodConverter;
import com.lion.ball.modules.orderfood.service.def.OfdDynamicGroupFoodService;
import com.lion.ball.modules.orderfood.web.api.OfdDynamicGroupFoodApi;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 动态分组与食品关联 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("ofd/dynamic/group/food")
public class OfdDynamicGroupFoodController implements OfdDynamicGroupFoodApi, BaseCrudController<
        OfdDynamicGroupFoodEntity,
        OfdDynamicGroupFoodCreateParam,
        OfdDynamicGroupFoodUpdateParam,
        OfdDynamicGroupFoodSearchParam,
        OfdDynamicGroupFoodOrderParam,
        OfdDynamicGroupFoodResult,
        OfdDynamicGroupFoodRepository,
        OfdDynamicGroupFoodConverter,
        OfdDynamicGroupFoodService
        > {

    @Autowired
    OfdDynamicGroupFoodService ofdDynamicGroupFoodService;

    @Override
    public OfdDynamicGroupFoodService getService() {
        return ofdDynamicGroupFoodService;
    }
}